<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sysTermOfPaymentBean.id}"/>
		<f:event type="preRenderView" listener="#{sysTermOfPaymentBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Sys Term Of Payment"/>

	<ui:define name="header">
		Sys Term Of Payment
	</ui:define>

	<ui:define name="subheader">
		View existing Sys Term Of Payment
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="sysTermOfPaymentBeanSysTermOfPaymentTermOfPaymentNo" value="Term Of Payment No:"/>
			<h:outputText id="sysTermOfPaymentBeanSysTermOfPaymentTermOfPaymentNo" value="#{sysTermOfPaymentBean.sysTermOfPayment.termOfPaymentNo}"/>
			<h:outputText/>
			<h:outputLabel for="sysTermOfPaymentBeanSysTermOfPaymentTermOfPaymentCode" value="Term Of Payment Code:"/>
			<h:outputText id="sysTermOfPaymentBeanSysTermOfPaymentTermOfPaymentCode" value="#{sysTermOfPaymentBean.sysTermOfPayment.termOfPaymentCode}"/>
			<h:outputText/>
			<h:outputLabel for="sysTermOfPaymentBeanSysTermOfPaymentTermOfPaymentDescr" value="Term Of Payment Descr:"/>
			<h:outputText id="sysTermOfPaymentBeanSysTermOfPaymentTermOfPaymentDescr" value="#{sysTermOfPaymentBean.sysTermOfPayment.termOfPaymentDescr}"/>
			<h:outputText/>
			<h:outputLabel for="sysTermOfPaymentBeanSysTermOfPaymentSdSaleOrders" value="Sd Sale Orders:"/>
			<h:dataTable id="sysTermOfPaymentBeanSysTermOfPaymentSdSaleOrders" styleClass="data-table" value="#{forgeview:asList(sysTermOfPaymentBean.sysTermOfPayment.sdSaleOrders)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="So No"/>
					</f:facet>
					<h:link outcome="/sdSaleOrder/view">
						<f:param name="id" value="#{_item.soNo}"/>
						<h:outputText id="itemSoNo" value="#{_item.soNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Code"/>
					</f:facet>
					<h:link outcome="/sdSaleOrder/view">
						<f:param name="id" value="#{_item.soNo}"/>
						<h:outputText id="itemSoCode" value="#{_item.soCode}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Descr"/>
					</f:facet>
					<h:link outcome="/sdSaleOrder/view">
						<f:param name="id" value="#{_item.soNo}"/>
						<h:outputText id="itemSoDescr" value="#{_item.soDescr}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Date"/>
					</f:facet>
					<h:link outcome="/sdSaleOrder/view">
						<f:param name="id" value="#{_item.soNo}"/>
						<h:outputText id="itemSoDate" value="#{_item.soDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Discount Perc"/>
					</f:facet>
					<h:link outcome="/sdSaleOrder/view">
						<f:param name="id" value="#{_item.soNo}"/>
						<h:outputText id="itemSoDiscountPerc" value="#{_item.soDiscountPerc}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sysTermOfPaymentBeanSysTermOfPaymentPcPurchaseOrders" value="Pc Purchase Orders:"/>
			<h:dataTable id="sysTermOfPaymentBeanSysTermOfPaymentPcPurchaseOrders" styleClass="data-table" value="#{forgeview:asList(sysTermOfPaymentBean.sysTermOfPayment.pcPurchaseOrders)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po No"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoNo" value="#{_item.poNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Code"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoCode" value="#{_item.poCode}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Descr"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoDescr" value="#{_item.poDescr}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Date"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoDate" value="#{_item.poDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Discount Perc"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoDiscountPerc" value="#{_item.poDiscountPerc}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sysTermOfPaymentBeanSysTermOfPaymentPcPurchaseReqs" value="Pc Purchase Reqs:"/>
			<h:dataTable id="sysTermOfPaymentBeanSysTermOfPaymentPcPurchaseReqs" styleClass="data-table" value="#{forgeview:asList(sysTermOfPaymentBean.sysTermOfPayment.pcPurchaseReqs)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr No"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReq/view">
						<f:param name="id" value="#{_item.prNo}"/>
						<h:outputText id="itemPrNo" value="#{_item.prNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Code"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReq/view">
						<f:param name="id" value="#{_item.prNo}"/>
						<h:outputText id="itemPrCode" value="#{_item.prCode}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Descr"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReq/view">
						<f:param name="id" value="#{_item.prNo}"/>
						<h:outputText id="itemPrDescr" value="#{_item.prDescr}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Date"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReq/view">
						<f:param name="id" value="#{_item.prNo}"/>
						<h:outputText id="itemPrDate" value="#{_item.prDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Discount Perc"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReq/view">
						<f:param name="id" value="#{_item.prNo}"/>
						<h:outputText id="itemPrDiscountPerc" value="#{_item.prDiscountPerc}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sysTermOfPaymentBeanSysTermOfPaymentSdCustTermOfPayments" value="Sd Cust Term Of Payments:"/>
			<h:dataTable id="sysTermOfPaymentBeanSysTermOfPaymentSdCustTermOfPayments" styleClass="data-table" value="#{forgeview:asList(sysTermOfPaymentBean.sysTermOfPayment.sdCustTermOfPayments)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sd Cust"/>
					</f:facet>
					<h:link outcome="/sdCustTermOfPayment/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSdCust" value="#{forgeview:display(_item.sdCust)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust Term Of Payment Effective Date"/>
					</f:facet>
					<h:link outcome="/sdCustTermOfPayment/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustTermOfPaymentEffectiveDate" value="#{_item.custTermOfPaymentEffectiveDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust Term Of Payment Expire Date"/>
					</f:facet>
					<h:link outcome="/sdCustTermOfPayment/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustTermOfPaymentExpireDate" value="#{_item.custTermOfPaymentExpireDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cust Term Of Payment Is Active"/>
					</f:facet>
					<h:link outcome="/sdCustTermOfPayment/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCustTermOfPaymentIsActive" value="#{_item.custTermOfPaymentIsActive}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sysTermOfPaymentBeanSysTermOfPaymentMmSupplierTermOfPayments" value="Mm Supplier Term Of Payments:"/>
			<h:dataTable id="sysTermOfPaymentBeanSysTermOfPaymentMmSupplierTermOfPayments" styleClass="data-table" value="#{forgeview:asList(sysTermOfPaymentBean.sysTermOfPayment.mmSupplierTermOfPayments)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Mm Supplier"/>
					</f:facet>
					<h:link outcome="/mmSupplierTermOfPayment/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemMmSupplier" value="#{forgeview:display(_item.mmSupplier)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Supplier Term Of Payment Effective Date"/>
					</f:facet>
					<h:link outcome="/mmSupplierTermOfPayment/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSupplierTermOfPaymentEffectiveDate" value="#{_item.supplierTermOfPaymentEffectiveDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Supplier Term Of Payment Expire Date"/>
					</f:facet>
					<h:link outcome="/mmSupplierTermOfPayment/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSupplierTermOfPaymentExpireDate" value="#{_item.supplierTermOfPaymentExpireDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Supplier Term Of Payment Is Active"/>
					</f:facet>
					<h:link outcome="/mmSupplierTermOfPayment/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSupplierTermOfPaymentIsActive" value="#{_item.supplierTermOfPaymentIsActive}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sysTermOfPaymentBeanSysTermOfPaymentSdQuotations" value="Sd Quotations:"/>
			<h:dataTable id="sysTermOfPaymentBeanSysTermOfPaymentSdQuotations" styleClass="data-table" value="#{forgeview:asList(sysTermOfPaymentBean.sysTermOfPayment.sdQuotations)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt No"/>
					</f:facet>
					<h:link outcome="/sdQuotation/view">
						<f:param name="id" value="#{_item.qtNo}"/>
						<h:outputText id="itemQtNo" value="#{_item.qtNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Code"/>
					</f:facet>
					<h:link outcome="/sdQuotation/view">
						<f:param name="id" value="#{_item.qtNo}"/>
						<h:outputText id="itemQtCode" value="#{_item.qtCode}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Descr"/>
					</f:facet>
					<h:link outcome="/sdQuotation/view">
						<f:param name="id" value="#{_item.qtNo}"/>
						<h:outputText id="itemQtDescr" value="#{_item.qtDescr}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Date"/>
					</f:facet>
					<h:link outcome="/sdQuotation/view">
						<f:param name="id" value="#{_item.qtNo}"/>
						<h:outputText id="itemQtDate" value="#{_item.qtDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Discount Perc"/>
					</f:facet>
					<h:link outcome="/sdQuotation/view">
						<f:param name="id" value="#{_item.qtNo}"/>
						<h:outputText id="itemQtDiscountPerc" value="#{_item.qtDiscountPerc}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>